// 客户薪资
export const salaryThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '客户名称',
    minWidth: 150,
    key: 'customerName'
  },
  {
    title: '收入类型',
    minWidth: 150,
    key: 'incomeTypeName',
    render: (h, params) => {
      const text = params.row.incomeTypeName ? params.row.incomeTypeName : '-'
      return h('span', text)
    }
  },
  {
    title: '年度',
    minWidth: 150,
    key: 'year',
  },
  {
    title: '累计应发工资总额',
    minWidth: 240,
    key: 'shouldSalaryTotal'
  },
  {
    title: '累计其他扣除',
    minWidth: 240,
    key: 'otherDeduct'
  },
  {
    title: '累积减免费用',
    minWidth: 240,
    key: 'reductionFee'
  },
  {
    title: '累计手续费合计',
    minWidth: 240,
    key: 'serviceCharge'
  },
  {
    title: '累计税后扣除合计',
    minWidth: 240,
    key: 'afterTaxDeduct'
  },
  {
    title: '累计社保扣除合计',
    minWidth: 240,
    key: 'socialSecurityDeduct'
  },
  {
    title: '累计公积金扣除合计',
    minWidth: 240,
    key: 'providentFundDeduct'
  },
  {
    title: '累计专项附加扣除合计',
    minWidth: 240,
    key: 'specialDeduct'
  },
  {
    title: '个税扣除合计',
    minWidth: 240,
    key: 'incomeDeduct'
  },
  {
    title: '操作',
    minWidth: 200,
    align: 'center',
    key: 'action',
    slot: 'action',
    fixed: 'right'
  }
]

// 薪资详情
export const salaryDetailThead = [
  {
    type: 'selection',
    minWidth: 60,
    align: 'center'
  },
  {
    title: '客户名称',
    minWidth: 150,
    key: 'customerName'
  },
  {
    title: '收入类型',
    minWidth: 150,
    key: 'incomeTypeName',
    render: (h, params) => {
      const text = params.row.incomeTypeName ? params.row.incomeTypeName : '-'
      return h('span', text)
    }
  },
  {
    title: '年度',
    minWidth: 150,
    key: 'year',
  },
  {
    title: '姓名',
    minWidth: 150,
    key: 'name'
  },
  {
    title: '身份证号码',
    minWidth: 200,
    tooltip: true,
    key: 'idCardNo'
  },
  {
    title: '应发工资',
    minWidth: 240,
    key: 'shouldSalaryTotal'
  },
  {
    title: '累计其他扣除合计',
    minWidth: 240,
    key: 'otherDeduct'
  },
  {
    title: '累计减免费用合计',
    minWidth: 240,
    key: 'reductionFee'
  },
  {
    title: '手续费',
    minWidth: 240,
    key: 'serviceCharge'
  },
  {
    title: '社保扣除',
    minWidth: 240,
    key: 'socialSecurityDeduct'
  },
  {
    title: '公积金扣除',
    minWidth: 240,
    key: 'providentFundDeduct'
  },
  {
    title: '专项附加扣除',
    minWidth: 240,
    key: 'specialDeduct'
  },
  {
    title: '累计个税扣除合计',
    minWidth: 240,
    key: 'incomeDeduct'
  }
  // {
  //   title: '工资发放日期',
  //   minWidth: 150,
  //   key: 'payDate',
  //   render: (h, params) => {
  //     const text = params.row.payDate ? params.row.payDate.slice(0, 10) : ''
  //     return h('span', text)
  //   }
  // },
  
]
